﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace QYmall.Core.Model.ViewModels
{
    /// <summary>
    /// 订单跟踪(显示)
    /// </summary>
    public class OrderLogDto
    {
        [Display(Name = "自增ID")]
        public long Id { get; set; }

        [Display(Name = "所属订单")]
        public long OrderId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        [Display(Name = "订单号")]
        [Required]
        [StringLength(128)]
        public string? OrderNo { get; set; }

        /// <summary>
        /// 动作类型
        /// </summary>
        [Display(Name = "动作类型")]
        [StringLength(128)]
        public string? ActionType { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        [Display(Name = "备注说明")]
        [StringLength(512)]
        public string? Remark { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        [Display(Name = "操作人")]
        [StringLength(128)]
        public string? AddBy { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime AddTime { get; set; } = DateTime.Now;
    }
}
